/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jl.security.mac;

import java.security.GeneralSecurityException;

/**
 * PBOC3DESMAC
 * 
 * @author LuHongjun
 */
public class ALG_DES_MAC4_ISO9797_1_M2_ALG3 extends
		ALG_DES_MAC8_ISO9797_1_M2_ALG3 {

	private byte[] res = new byte[4];

	@Override
	public byte[] doFinal(byte[] data) throws GeneralSecurityException {
		byte[] temp = super.doFinal(data);
		System.arraycopy(temp, 0, res, 0, 4);
		return res;
	}
}
